import Vue from 'vue'
import 'normalize.css/normalize.css'
import ElementUI from 'element-ui'
import { Message } from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import '@/styles/index.scss'
import App from './App'
import store from './store'
import router from './router'
import '@/icons'
import '@/permission'
import dataV from '@jiaminghi/data-view'
Vue.use(dataV)
import permission from '@/directive/permission' // 权限判断指令
import isAdmin from '@/directive/isAdmin' // 权限判断指令
import VueClipboard from 'vue-clipboard2'
Vue.use(VueClipboard)
Vue.directive('permission', permission) // 全局注册指令
Vue.directive('isAdmin', isAdmin) // 全局注册指令
Vue.prototype.$message = Message
Vue.use(ElementUI)
Vue.config.productionTip = false
new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
